package com.shijie.controller.erp;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.shijie.core.Result;
import com.shijie.core.ResultGenerator;
import com.shijie.service.MenusService;

/*
 *  @author: smart boy
 *  @date: 2018-08-06
 */
@RestController
@RequestMapping("/erp/menus")
public class MenusController {

    @Resource
	private MenusService menusService;

	@GetMapping
    public Result allTree() {
        return ResultGenerator.success(menusService.selectAllMenus());
	}
}

